/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

/**
 *
 * @author agung
 */
public class Pengiriman {
    private String kodePemesanan;
    private String status;

    public Pengiriman(String kodePemesanan, String status) {
        this.kodePemesanan = kodePemesanan;
        this.status = status;
    }
    
    public boolean KirimBarang() throws SQLException {
        Connection con = KoneksiDB.Koneksi.open();
        Statement stat = con.createStatement();
        String update = "update pemesanan set status = '"+ status +"'where kode_pemesanan='"+ kodePemesanan +"'";
        stat.executeQuery(update);
        return true;
    }
}
